package com.wan37.logic.tradingshop.domain.vo;

import com.wan37.logic.tradingshop.domain.entity.TradingShopDO;
import com.wan37.protobuf.message.client2server.game.GameTradingShop;

/**
 * @author : luoyong
 * @date : 2020-08-05 10:01
 **/
public class TradingShopVO {
    private String tradingShopId;
    private int tradingShopType;
    private int type;
    private String userId;
    private String backpackId;
    private Integer level;
    private Integer count;
    private long gold;
    private long ingot;
    private long createTime;

    public TradingShopVO(){}

    public TradingShopVO(TradingShopDO tradingShopDO){
        this.tradingShopId = tradingShopDO.getTradingShopId();
        this.tradingShopType = tradingShopDO.getTradingShopType();
        this.type = tradingShopDO.getType();
        this.userId = tradingShopDO.getUserId();
        this.backpackId = tradingShopDO.getBackpackId();
        this.level = tradingShopDO.getLevel();
        this.count = tradingShopDO.getCount();
        this.gold = tradingShopDO.getGold();
        this.ingot = tradingShopDO.getIngot();
        this.createTime = tradingShopDO.getCreateTime();
    }

    public TradingShopVO(GameTradingShop.TradingShop tradingShop){
        this.tradingShopId = tradingShop.getTradingShopId();
        this.tradingShopType = tradingShop.getTradingShopType();
        this.type = tradingShop.getType();
        this.userId = tradingShop.getUserId();
        this.backpackId = tradingShop.getBackpackId();
        this.level = tradingShop.getLevel();
        this.count = tradingShop.getCount();
        this.gold = tradingShop.getGold();
        this.ingot = tradingShop.getIngot();
        this.createTime = tradingShop.getCreateTime();
    }


    public String getTradingShopId() {
        return tradingShopId;
    }

    public void setTradingShopId(String tradingShopId) {
        this.tradingShopId = tradingShopId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getBackpackId() {
        return backpackId;
    }

    public void setBackpackId(String backpackId) {
        this.backpackId = backpackId;
    }


    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public long getGold() {
        return gold;
    }

    public void setGold(long gold) {
        this.gold = gold;
    }

    public long getIngot() {
        return ingot;
    }

    public void setIngot(long ingot) {
        this.ingot = ingot;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getTradingShopType() {
        return tradingShopType;
    }

    public void setTradingShopType(int tradingShopType) {
        this.tradingShopType = tradingShopType;
    }

    @Override
    public String toString() {
        return "TradingShopVO{" +
                ", tradingShopId='" + tradingShopId + '\'' +
                ", tradingShopType=" + tradingShopType +
                ", type=" + type +
                ", userId='" + userId + '\'' +
                ", backpackId='" + backpackId + '\'' +
                ", level=" + level +
                ", count=" + count +
                ", gold=" + gold +
                ", ingot=" + ingot +
                ", createTime=" + createTime +
                '}';
    }
}
